package com.nova.auth.controller;

import com.nova.base.validator.IsMobile;
import com.nova.datasource.domain.entity.BaseEntity;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author ttao
 * @since 2024/9/28 23:35
 */
@Data
public class User extends BaseEntity {
    @NotBlank(message = "用户名不能为空")
    private String name;
    @NotBlank(message = "年龄不能为空")
    private String age;
    @IsMobile
    private String phone;
}
